package com.alks.function.mapper;

import com.alks.entity.data.entity.PcLotMtlPrice;
import com.alks.function.data.request.mtl.GenericMaterialDocReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-05-16
 */
public interface PcLotMtlPriceMapper extends BaseMapper<PcLotMtlPrice> {
    List<PcLotMtlPrice> getGenericMaterialDetail(@Param("req") GenericMaterialDocReq req);

    Integer optionGenericMtl(@Param("req") PcLotMtlPrice req, @Param("choose") String choose);

    int updateGenericMtl(@Param("list") List<PcLotMtlPrice> list);

    void updateGenericMtlWP(@Param("list") List<PcLotMtlPrice> list, @Param("vendorName") String vendorName, @Param("vendorNo") String vendorNo, @Param("price") BigDecimal price, @Param("userName") String userName);

    List<PcLotMtlPrice> getLotMtlUsgPrice(@Param("req") GenericMaterialDocReq req);

    void copyLot(@Param("req") PcLotMtlPrice price);

    void deleteChooseLot(@Param("req") PcLotMtlPrice price);

    List<PcLotMtlPrice> getLotMtlUsgPriceChe(@Param("req") GenericMaterialDocReq req);

    void updatePcLotMtlCheck(@Param("list") List<PcLotMtlPrice> list, @Param("choose") String choose, @Param("userName") String userName);

}
